@function px2rem($values) {
    $len: length($values);
    @if ($len == 1) {
        @return __px2rem($values);
    }
    $newValues: null;
    @each $v in $values {
        $v1: if(type-of($v) == number, __px2rem($v), $v);
        $newValues: append($newValues, $v1);
    }
    @return $newValues;
}

@function __px2rem($value) {
    @return tripUnit($value) / tripUnit($height) * 10rem;
}

@function px2em($value, $base: $baseFont) {
    @return tripUnit($value) / tripUnit($base) * 1em;
}

@function tripUnit($value) {
    @return $value / (1 + 0 * $value);
}

@mixin sm {
    @media screen and (max-height: 625px) {
        @content;
    }
}
